package com.py.custom.tms.application.jvm.classload;

public class MyTest18_1 {
    public static void main(String[] args) throws Exception {
        MyTest16 loader1 = new MyTest16("loader1");
        loader1.setPath("/User/pengyou03/Desktop/");
        // 将MyTest1.class放入启动类加载器 加载的路径下。（包也复制）
        // 结论：启动类加载器 也可以加载
        Class<?> clazz = loader1.loadClass("com.py.custom.tms.application.jvm.classload.MyTest1");

        System.out.println("clazz: " + clazz.hashCode());
        System.out.println("class loader: " + clazz.getClassLoader());

    }
}
